package demo03;
/*
对于基本数据类型中的boolean型，获取时不能使用getXXX,要使用isXXX
 */
public class Student {
    private String name;
    private int age;
    private boolean male;//是不是男生

    public void  setName(String str){
        name =str;
    }
    public String getName(){
        return name;
    }

    public void  setAge(int num){
        age =num;
    }
    public int getAge(){
        return age;
    }

    public void  setMale(boolean b){
        male =b;
    }
    public boolean isMale(){//特殊
        return male;
    }

}
